javascript convert milliseconds to hh mm ss

159

javascript convert milliseconds to hh mm ss -

var result = Math.floor(myDuration/(1000*60*60)) + ":" + Math.floor(myDuration/(1000*60))%60 + ":" + Math.floor(myDuration/1000)%60;

Comments

Submit
0 Comments